// 新版商城下单

import {
	request
} from '@/assets/request.js'
import { HTTP_FREIGHT_URL,HTTP_SHOPPING_URL} from '@/config/app';

let devGulz = HTTP_FREIGHT_URL; // 货代


export function ShoporderCreateOrder(data) { 
	return request({
		url: `${devGulz}/Shoporder/createOrder`,
		method: 'post',
		data: data
	})
}
// 我买的列表
export function shoporder_purchase_list(data) { 
	return request({
		url: `${devGulz}/Shoporder/purchase_list`,
		method: 'post',
		data: data
	})
}

// 我卖的列表
export function shoporder_sell_list(data) { 
	return request({
		url: `${devGulz}/Shoporder/sell_list`,
		method: 'post',
		data: data
	})
}

// 我买的订单详情
export function Shoporderpurchase_detaile(data) { 
	return request({
		url: `${devGulz}/Shoporder/purchase_detaile`,
		method: 'post',
		data: data
	})
}
// 我卖的详情
export function Shoporderpursell_detaile(data) { 
	return request({
		url: `${devGulz}/Shoporder/sell_detaile`,
		method: 'post',
		data: data
	})
}

// 申请售后
export function Shoporderadd_after_sales(data) { 
	return request({
		url: `${devGulz}/Shoporder/add_after_sales`,
		method: 'post',
		data: data
	})
}

// 上传支付凭证
export function Shoporderup_payment_voucher(data) { 
	return request({
		url: `${devGulz}/Shoporder/up_payment_voucher`,
		method: 'post',
		data: data
	})
}

// 关联运踪
export function Shoporderyuntrace_update(data) { 
	return request({
		url: `${devGulz}/Shoporder/yuntrace_update`,
		method: 'post',
		data: data
	})
}

// 卖方同意申请
export function Shoporderseller_operate(data) { 
	return request({
		url: `${devGulz}/Shoporder/seller_operate`,
		method: 'post',
		data: data
	})
}


// 买家同意付款
export function Shoporderconfirm_pay(data) { 
	return request({
		url: `${devGulz}/Shoporder/confirm_pay`,
		method: 'post',
		data: data
	})
}

// 填报运费
export function Shoporderup_shipping_fee(data) { 
	return request({
		url: `${devGulz}/Shoporder/up_shipping_fee`,
		method: 'post',
		data: data
	})
}

// 添加评论

export function Shoporderadd_comment(data) { 
	return request({
		url: `${devGulz}/Shoporder/add_comment`,
		method: 'post',
		data: data
	})
}

// 售后详情
export function Shoporderafter_sales_detail(data) { 
	return request({
		url: `${devGulz}/Shoporder/after_sales_detail`,
		method: 'post',
		data: data
	})
}

// 修改售后
export function Shoporderupdate_after_sales(data) { 
	return request({
		url: `${devGulz}/Shoporder/update_after_sales`,
		method: 'post',
		data: data
	})
}

//订单详情
export function getOrderDetail(data) {
	return request({
			url:  `${devGulz}/index/delivery_find`,
			method: 'post',
			data
	})
}



























